package com.wn.cl.park.model.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author yellow docker
 * @since 2025-03-11
 */
@Getter
@Setter
@TableName("parking_lots")
@ApiModel(value = "ParkingLots对象", description = "")
public class ParkingLots implements Serializable {

    private static final long serialVersionUID = 1L;

      @ApiModelProperty("停车场ID，主键，自动递增")
      @TableId
      private Long id;

      @ApiModelProperty("停车场名称")
      private String name;

      @ApiModelProperty("地址")
      private String address;

      @ApiModelProperty("纬度")
      private BigDecimal latitude;

      @ApiModelProperty("经度")
      private BigDecimal longitude;

      @ApiModelProperty("总车位数")
      private Integer totalSpots;

      @ApiModelProperty("可用车位数")
      private Integer availableSpots;

      @ApiModelProperty("创建时间，默认为当前时间")
      private LocalDateTime createdAt;

      @ApiModelProperty("更新时间，默认为当前时间且在更新时自动修改")
      private LocalDateTime updatedAt;


}
